<template>
  <view class="home">
    这是云雷联创页面
    <button @click="goLogin">去登录</button>
  </view>
</template>

<script setup>
import { computed, reactive } from "vue";
import { onLoad, onShow} from "@dcloudio/uni-app";
const shareData = computed(()=>{ // 分享的数据
	return {
		title: '云雷联创',
		path: 'pages/home/index',
	}
})
const state = reactive({
  list: [],
});
onLoad(() => {
  uni.$mpShare = shareData.value 
});
onShow(() => {
  uni.$mpShare = shareData.value
});
function goLogin(){
  uni.navigateTo({
    url: "/pages/login/register",
  });
}
</script>
<style scoped lang="scss">
.home {
  width: 100%;
  box-sizing: border-box;
}
</style>
